/* Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details. */
/* All rights reserved.  Use of this source code is governed by a BSD-style */
/* license that can be found in the LICENSE file. */

.close {
  float: right;
  font-size: 21px;
  font-weight: bold;
  line-height: 1;
  color: #000000;
  text-shadow: 0 1px 0 #ffffff;
  opacity: 0.2;
  filter: alpha(opacity=20);
}

.close:hover,
.close:focus {
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.5;
  filter: alpha(opacity=50);
}

button.close {
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
}

.tabview-container {
  background: #EEE;
  bottom: 0;
  display: flex;
  flex-flow: column;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.tabview-tabbar {
  display: flex;
  position: relative;
  box-sizing: border-box;
  height: 48px;
  background: white;
  border-bottom: 1px solid #ddd;
  overflow: visible;
  -webkit-transition: height 250ms, padding 250ms;
  -webkit-user-select: none;
}

.tabview-tabbar.tabview-tabbar-hidden {
  height: 0;
  padding: 0;
  border-bottom: none;
}

.tabview-tabbar-scroller {
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.tabview-tabbar-scrollable {
  background: #fafafa;
  height: 48px;
  display: block;
}

.tabview-tablabel {
  -webkit-user-select: none;
  position: relative;
  display: inline-flex;
  border-right: 1px solid #dadada;
  line-height: 48px;
  padding: 0 20px 0 2px;
}

.tabview-tablabel.hide-close-button:not(.tabview-tablabel-active) {
  padding: 0 8px 0 8px;
}

.tabview-tablabel-active {
  background-color: #fff;
  box-shadow: inset 0 -4px #4281f4;
}

.tabview-tablabel:hover {
  background: #fafaff;
}

.tabview-tablabel-caption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #888;
}

.tabview-tablabel .tabview-tablabel-caption {
  color: #888;
}

.tabview-tablabel .tabview-tablabel-caption.persisted {
  color: black;
}

.tabview-tablabel-active .tabview-tablabel-caption {
  color: #4281f4;
  opacity: 0.6;
}

.tabview-tablabel-active .tabview-tablabel-caption.persisted {
  color: #4281f4;
  opacity: 1.0;
}

.tabview-tablabel-closebutton {
  cursor: default;
  display: none;
  height: 18px;
  width: 18px;
  outline: none;
  position: absolute;
  right: 2px;
  top: 15px;
  padding: 3px;
  /* NOTE: This also creates a stacking context, which affects the entire
     tabview layout. */
  opacity: 0.2;
}

.hide-close-button:not(.tabview-tablabel-active) .tabview-tablabel-closebutton {
  display: none;
}

.tabview-tablabel-closable .tabview-tablabel-closebutton {
  display: block;
  background: url(../../../images/close.svg);
}

.tabview-tablabel-saveState {
  opacity: 0;
  position: relative;
  top: 1px;
  font-size: 22px;
  margin-left: 3px;
  margin-right: 3px;
  /* TODO(devoncarew): We disable this animation as it causes the label's text
     to flicker. */
  /*-webkit-transition: opacity 100ms;*/
}

.tabview-tablabel-dirty {
  opacity: 0.5;
}

/* NOTE: These 4 rules also create stacking contexts, which affects the entire
   tabview layout. */
.tabview-tablabel-active .tabview-tablabel-closebutton {
  opacity: 0.5;
}

.tabview-tablabel:hover .tabview-tablabel-closebutton {
  opacity: 0.5;
}

.tabview-tablabel-closebutton:hover {
  opacity: 0.8;
}

.tabview-tablabel:hover .tabview-tablabel-closebutton:hover {
  opacity: 0.8;
}

.tabview-workspace {
  background: #272822;
  display: flex;
  flex: 1;
  position: relative;
}

.tabview-page-container {
  display: none;
  flex: 1;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.tabview-page-container-active {
  display: flex;
}

.tabview-page-container > * {
  flex: 1;
}
